/**
 * 
 */
package com.sci.web.action.datareportseason.researchmoney;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.DataReportM_InnovateBaseDao;

/**
 * @author  BaiFuyou
 * @date: Nov 10, 2011 10:28:54 AM
 */
public class DeleteEnterpriseFundsAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6358282076618664369L;
	@Resource
	private DataReportM_InnovateBaseDao dataReportM_InnovateBaseDao;
	private int fundid;
	private int eid;
	/**
	 * @return the fundid
	 */
	public int getFundid() {
		return fundid;
	}
	/**
	 * @param fundid the fundid to set
	 */
	public void setFundid(int fundid) {
		this.fundid = fundid;
	}
	/**
	 * @return the eid
	 */
	public int getEid() {
		return eid;
	}
	/**
	 * @param eid the eid to set
	 */
	public void setEid(int eid) {
		this.eid = eid;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("fundid", fundid);
		map.put("eid", eid);
		super.setContentType(super.JSON);
		if(dataReportM_InnovateBaseDao.deleteOneEnterprise_FundsByFidEid(map)){
			super.outPrint("ok");
		}else{
			super.outPrint("fail");
		}
		return "json";
	}

}
